package com.gxa.logistics.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

public class VehicleSaveDTO {

    public String getLpnum() {
        return lpnum;
    }

    public void setLpnum(String lpnum) {
        this.lpnum = lpnum;
    }

    public String getVctype() {
        return vctype;
    }

    public void setVctype(String vctype) {
        this.vctype = vctype;
    }

    public Integer getLoad() {
        return load;
    }

    public void setLoad(Integer load) {
        this.load = load;
    }

    public Integer getEgnum() {
        return egnum;
    }

    public void setEgnum(Integer egnum) {
        this.egnum = egnum;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }
    @ApiModelProperty(name = "lpnum", notes = "车牌号码", dataType = "String", required = true)
    @NotNull(message = "车牌号码不能为空")
    private String lpnum;

    //车辆类型
    @ApiModelProperty(name = "vtype", notes = "车辆类型", dataType = "String", required = true)
    @NotNull(message = "车辆类型不能为空")
    private String vctype;
    //载重
    @ApiModelProperty(name = "load", notes = "载重", dataType = "Integer", required = true)
    @NotNull(message = "载重不能为空")
    private Integer load;
    //发动机号
    @ApiModelProperty(name = "egnum", notes = "发动机号", dataType = "Integer", required = true)
    @NotNull(message = "发动机号不能为空")
    private Integer egnum;
    //备注
    @ApiModelProperty(name = "remark", notes = "备注", dataType = "String", required = false)

    private String remark;
    //状态
    @ApiModelProperty(name = "status",notes = "状态",dataType = "Byte",required = true)
    @NotNull(message = "状态")
    @Range(min = 1,max = 2,message = "状态(1:正常,2:维修)")
    private Byte status;
}
